7a1ca75d8852c2dd704706c9c1c58e0831bb0dde,japicmp-maven-plugin/src/main/java/japicmp/maven/JApiCmpMojo.java,JApiCmpMojo,resolveArtifact,#Artifact#MavenParameters#boolean#PluginParameters#,643
Before Change
Set<Artifact> artifacts = resolutionResult.getArtifacts();
if (artifacts.size() == 0) {
String message = "Could not resolve " + artifact;
if (ignoreNonResolvableArtifacts(pluginParameters)) {
getLog().warn(message);
} else {
throw new MojoFailureException(message);
After Change
if (resolutionResult.hasExceptions()) {
List<Exception> exceptions = resolutionResult.getExceptions();
String message = "Could not resolve " + artifact;
if (ignoreNonResolvableArtifacts(pluginParameters) || ignoreMissingOldVersion(pluginParameters, configurationVersion)) {
getLog().warn(message);
} else {
throw new MojoFailureException(message, exceptions.get(0));
}
}
Set<Artifact> artifacts = resolutionResult.getArtifacts();
if (artifacts.size() == 0) {
String message = "Could not resolve " + artifact;
if (ignoreNonResolvableArtifacts(pluginParameters) || ignoreMissingOldVersion(pluginParameters, configurationVersion)) {
getLog().warn(message);
} else {
throw new MojoFailureException(message);